package ch01;

public class MyThreadTarget implements Runnable{
	
	public static void main(String[] args) {
		for (int i = 0; i < 5; i++) {
			Runnable runnable = new MyThreadTarget();
			new Thread(runnable).start();
		}
	}

	@Override
	public void run() {
		for (int i = 0; i < 20; i++) {
			System.out.println(Thread.currentThread().getName() + ":" + i);
		}
	}

}
